import request from '@/utils/request'

// 查询制程巡检日报列表
export function listInspection_main(query) {
  return request({
    url: '/Productionline/inspection_main/list',
    method: 'get',
    params: query
  })
}

// 查询制程巡检日报详细
export function getInspection_main(id) {
  return request({
    url: '/Productionline/inspection_main/' + id,
    method: 'get'
  })
}

// 新增制程巡检日报
export function addInspection_main(data) {
  return request({
    url: '/Productionline/inspection_main',
    method: 'post',
    data: data
  })
}

// 修改制程巡检日报
export function updateInspection_main(data) {
  return request({
    url: '/Productionline/inspection_main',
    method: 'put',
    data: data
  })
}
export function checkInspection_main(data) {
  return request({
    url: '/Productionline/inspection_main/check',
    method: 'put',
    data: data
  })
}
// 删除制程巡检日报
export function delInspection_main(id) {
  return request({
    url: '/Productionline/inspection_main/' + id,
    method: 'delete'
  })
}

// 删除制程巡检日报
export function getInspectionSub_main() {
  return request({
    url: '/Productionline/inspection_main/getSub',
    method: 'get'
  })
}

// 获取品项
export function getPx() {
  return request({
    url: '/Productionline/inspection_main/getPx',
    method: 'get'
  })
}
